# -*- coding: utf-8 -*-
# date:22-04-18
# learner:ddl
import torch
from torch import nn


class DDL(nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, input):
        output = input + 1
        return output


ddl = DDL()  # 整个程序的开始
x = torch.tensor(1.0)  # 将1.0这个数据类型转换成tensor这种数据类型
output = ddl(x)
print(output)
